<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head th:replace="/pc/common::head(~{::custom_settings})">
		<th:block th:fragment="custom_settings">
			<title>订单统计</title>
		</th:block>
	</head>
	<body class="main-content">
		<div class="main-toolbar"></div>
		<div id="isQuery" class="main-develop-query">
		    <table>
		        <tr >
		            <td style="padding-top: 5px;"><label>关键字：</label></td>
		            <td style="padding-top: 5px;"><div id="keyword" class="search-textbox" width="200" height="25"></div></td>
		            <td style="padding-top: 5px;"><label>商户：</label></td>
		            <td style="padding-top: 5px;"><div id="merchantid" class="search-select" enableFilter="true" idField="entityid" textField="merchantname" multiSelect="true" width="200" height="25" placeHolder="全部"></div></td>
		            <td style="padding-top: 5px;"><label>大客户：</label></td>
		            <td style="padding-top: 5px;"><div id="customerid" class="search-select" enableFilter="true" idField="entityid" textField="customername" multiSelect="true" width="200" height="25" placeHolder="全部"></div></td>
		            <td style="padding-top: 5px;"><label>状态：</label></td>
		            <td colspan="4" align="left" style="padding-top: 5px;"><div id="entitystate" class="search-select" idField="val" textField="text" multiSelect="true" width="200" height="25" placeHolder="全部"></div></td>
		        </tr>
		        <tr >
		        	<td style="padding-top: 5px;"><label>订单来源：</label></td>
		            <td style="padding-top: 5px;"><div id="orderorigin" class="search-select" idField="val" textField="text" multiSelect="true" width="200" height="25" placeHolder="全部"></div></td>
		            <td style="padding-top: 5px;"><label>订单类型：</label></td>
		            <td style="padding-top: 5px;"><div id="ordertype" class="search-select" idField="val" textField="text" multiSelect="true" width="200" height="25" placeHolder="全部"></div></td>
		            <td style="padding-top: 5px;"><label>配送状态：</label></td>
		            <td style="padding-top: 5px;"><div id="deliverystate" class="search-select" idField="val" textField="text" multiSelect="true" width="200" height="25" placeHolder="全部"></div></td>
		            <td style="padding-top: 5px;"><label>配送方式：</label></td>
		            <td style="padding-top: 5px;"><div id="deliverymode" class="search-select" idField="val" textField="text" multiSelect="true" width="200" height="25" placeHolder="全部"></div></td>
		            <td style="padding-top: 5px;"><label>支付状态：</label></td>
		            <td style="padding-top: 5px;"><div id="paymentstate" class="search-select" idField="val" textField="text" multiSelect="true" width="200" height="25" placeHolder="全部"></div></td>
		            <td style="padding-top: 5px;"><input class="org-search" type="button" onclick="onSearch();" value="查询"/></td>
		        </tr>
		    </table>
		</div>
	    <div id="dataGrid" class="search-datagrid  main-auto-content" idField="entityid" showCheckBox="true" multiSelect="true"
	         alternatingRows="true" style="width:100%;height:100%;" ondrawcell="ondrawcell">
	        <div property="columns">
	            <div type="checkcolumn"></div>
	            <div type="indexcolumn" width="30" headAlign="center" textAlign="center">序号</div>
	            <div field="entityid" width="120" headAlign="center" textAlign="left">订单号</div>
	            <div field="merchantname" width="200" headAlign="center" textAlign="left">商户名称</div>
	            <div field="buyername" width="200" headAlign="center" textAlign="left">客户</div>
	            <div field="orderorigin" width="80" headAlign="center" textAlign="center">订单来源</div>
	            <div field="ordertype" width="80" headAlign="center" textAlign="center">订单类型</div>
	            <div field="ordertotal" width="80" headAlign="center" textAlign="right">订单总额</div>
	            <div field="goodtotal" width="80" headAlign="center" textAlign="right">商品总额</div>
	            <div field="paymenttotal" width="80" headAlign="center" textAlign="right">支付总额</div>
	            <div field="ordertime" width="150" headAlign="center" textAlign="center">下单时间</div>
	            <div field="deliverystate" width="80" headAlign="center" textAlign="center">配送状态</div>
	            <div field="deliverymode" width="80" headAlign="center" textAlign="center">配送方式</div>
	            <div field="deliverytime" width="100" headAlign="center" textAlign="center">配送时间</div>
	            <div field="deliverystarttime" width="150" headAlign="center" textAlign="center">起送时间</div>
	            <div field="deliveryendtime" width="150" headAlign="center" textAlign="center">止送时间</div>
	            <div field="deliverycost" width="80" headAlign="center" textAlign="right">配送费用</div>
	            <div field="sendtime" width="150" headAlign="center" textAlign="center">发货时间</div>
	            <div field="receivetime" width="150" headAlign="center" textAlign="center">收货时间</div>
	            <div field="completetime" width="150" headAlign="center" textAlign="center">完成时间</div>
	            <div field="paymentstate" width="80" headAlign="center" textAlign="center">支付状态</div>
	            <div field="refundstate" width="80" headAlign="center" textAlign="center">待办理</div>
	            <!-- <div field="tkstate" width="80" headAlign="center" textAlign="center">待退款</div> -->
	            <div field="cancelreason" width="200" headAlign="center" textAlign="left">取消原因</div>
	            <!-- <div field="customerclose" width="80" headAlign="center" textAlign="center">大客户</br>结算</div>
	            <div field="customerclosetime" width="100" headAlign="center" textAlign="center">大客户</br>结算时间</div> -->
	            <div field="entitystate" width="80" headAlign="center" textAlign="center">状态</div>
	        </div>
	    </div>
		<script type="text/javascript" th:src="@{{js}/pc/statistics/orders/OrderStatisticsMgrHandler.js(js=${js})}"></script>
	</body>
</html>
